<div class="search_owner" style="height:100px;">
	<form action="" method="get" name="searchForm" id="searchForm">
	<table>
		<tr>
			<td height="30px" class="font12">
			日期：<input type="text" id="txt_s_time" class="input_small" value="{$s_time}" name="txt_s_time" readonly="readonly" onClick="WdatePicker()" />到
			<input type="text" id="txt_e_time" class="input_small" value="{$e_time}" name="txt_e_time"  readonly="readonly" onClick="WdatePicker()" />
			卡号：<input type="text" class="input_small" onkeydown="$('#hidRType').val('');searchAccountDetail(event)" value="{$owner_card}" name="txt_card_value" id="txt_card_value" />
			业主姓名：<input type="text" class="input_small" onkeydown="$('#hidRType').val('');searchAccountDetail(event)" value="{$owner_name}" name="txt_name_value" id="txt_name_value" />
			<a href="###" onclick="$('#hidRType').val('');searchAccountDetail()" class="g_a">
		     	<span class="g_b">
		        	<span class="g_c">&nbsp;</span>
			    	<span class="g_d">查找</span>
			    </span>
			</a>
			<input type="hidden" id="hidRType" name="hidRType" value="{$r_type}" />
			<input type="hidden" id="hidExcel" name="hidExcel" value="" />
			</td>
		</tr>
	</table>
	</form>
	<div class="div_line" style="width:740px;"></div>
	<div class="report_btn">
		<a href="###" onclick="$('#hidRType').val(1);searchAccountDetail();" class="g_a">
	     	<span class="g_b">
	        	<span class="g_c">&nbsp;</span>
		    	<span class="g_d">本周统计</span>
		    </span>
		</a>
		
		<a href="###" onclick="$('#hidRType').val(2);searchAccountDetail();" class="g_a">
	     	<span class="g_b">
	        	<span class="g_c">&nbsp;</span>
		    	<span class="g_d">本月统计</span>
		    </span>
		</a>
		
		<a href="###" onclick="$('#hidRType').val(3);searchAccountDetail();" class="g_a">
	     	<span class="g_b">
	        	<span class="g_c">&nbsp;</span>
		    	<span class="g_d">本年统计</span>
		    </span>
		</a>
		
		<a href="###" onclick="$('#hidExcel').val('1');searchAccountDetail();" class="g_a">
	     	<span class="g_b">
	        	<span class="g_c">&nbsp;</span>
		    	<span class="g_d"><img src="/images/icon_excel.gif" />导出Excel</span>
		    </span>
		</a>
	</div>
</div>
<div class="report_s font_w_b">搜索结果：<span class="color_green font_w_n font12">时间从{$s_time}到{$e_time}{if $owner_card neq ""}&nbsp;&nbsp;卡号:{$owner_card}{/if}{if $owner_name neq ""}&nbsp;&nbsp;姓名:{$owner_name}{/if}</span></div>
<div class="integral_owner">
	<table width="500px">
		<tr>
			<td>
				累计增加积分：{$reportData.cost_money_add}
			</td>
			<td>
				累计扣减积分：{$reportData.cost_money_reduce}
			</td>
		</tr>
		<tr>
			<td>
				累计撤销增加积分：{$reportData.cost_money_add_cancel}
			</td>
			<td>
				累计撤销扣减积分：{$reportData.cost_money_reduce_cancel}
			</td>
		</tr>
		<tr>
			<td>
				累计实际增加积分：{$reportData.cost_money_add_sj}
			</td>
			<td>
				累计实际扣减积分：{$reportData.cost_money_reduce_sj}
			</td>
		</tr>
	</table>
</div>
<table class="tlist" style="width:100%; margin-top:20px;">
	<tr>
		<th>交易流水号</th>
		<th>交易时间</th>
		<th>交易类别</th>
		<th>卡号</th>
		<th>业主姓名</th>
		<th>实际增加积分</th>
		<th>赠送积分</th>
		<th>扣减积分</th>
		<th>当前剩余积分</th>
	</tr>
	{foreach from=$list item=v}
	<tr>
		<td style="width:60px;">{$v.pay_id}</td>
		<td style="width:60px;">{$v.cost_time}</td>
		<td>{if $v.cost_type eq 1}增加积分{elseif $v.cost_type eq 2}扣减积分{else}撤销交易{/if}</td>
		<td>{$v.owner_card}</td>
		<td>{$v.owner_name}</td>
		<td class="color_green font_w_b">{if $v.cost_type eq 1 or ($v.cost_type eq 3 and $v.cancel_cost_type eq 2)}{$v.cost_money_t}{else}0{/if}</td>
		<td class="color_ry font_w_b">{if $v.discount_type eq 1 and  $v.cost_type eq 1}{$v.discount_num}{else}0{/if}</td>
		<td class="color_green font_w_b">{if $v.cost_type eq 2 or ($v.cost_type eq 3 and $v.cancel_cost_type eq 1)}{$v.cost_money_t}{else}0{/if}</td>
		<td>
			{$v.cost_shop_after_money}
		</td>
	</tr>
	{/foreach}
	{if $pageStr neq ""}
	<tr><td colspan="9">{$pageStr}</td></tr>
	{/if}
</table>
